import request from '@/utils/request'

// 查询物资检修详情列表
export function listElecMaterialRepairDetail(query) {
  return request({
    url: '/elec/elecMaterialRepairDetail/list',
    method: 'get',
    params: query
  })
}

// 查询物资检修详情详细
export function getElecMaterialRepairDetail(repairdetailId) {
  return request({
    url: '/elec/elecMaterialRepairDetail/' + repairdetailId,
    method: 'get'
  })
}

// 新增物资检修详情
export function addElecMaterialRepairDetail(data) {
  return request({
    url: '/elec/elecMaterialRepairDetail',
    method: 'post',
    data: data
  })
}

// 修改物资检修详情
export function updateElecMaterialRepairDetail(data) {
  return request({
    url: '/elec/elecMaterialRepairDetail',
    method: 'put',
    data: data
  })
}

// 删除物资检修详情
export function delElecMaterialRepairDetail(repairdetailId) {
  return request({
    url: '/elec/elecMaterialRepairDetail/' + repairdetailId,
    method: 'delete'
  })
}
